﻿// -----------------------------------------------------------------------
// <copyright file="program.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex04.Menus.Interfaces
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class MainMenu
    {
        private const string k_NameOfMain = "Main Menu Interfaces";
        public const string k_NameOfExit = "Exit";
        private readonly SubMenu r_MenuToChooseFrom = new SubMenu(k_NameOfMain, k_NameOfExit);

        public string NameOfMain
        {
            get { return k_NameOfExit; }
        }

        public void Show()
        {
            r_MenuToChooseFrom.DoSomething();
        }

        public void AddNewItem(MenuItem i_MenuItem)
        {
            r_MenuToChooseFrom.AddMenuItem(i_MenuItem);
        }
    }
}
